package work1.work3.student;

public class Test {
    public static void main(String[] args) {
        Student student = new Collegestudent("张三",87,90,78);
        Student student1 = new Collegestudent("李四",87,90,78);
        Student student2 = new Undergraduate("jack",87,90,78);
        Student student3 = new Undergraduate("lily",87,90,78);
        System.out.println("姓名     类型     等级");
        System.out.println(student.name+"    "+student.type+"    "+student.calculateGrade());
        System.out.println(student1.name+"    "+student1.type+"    "+student1.calculateGrade());
        System.out.println(student2.name+"    "+student2.type+"    "+student2.calculateGrade());
        System.out.println(student3.name+"    "+student3.type+"    "+student3.calculateGrade());
    }
}
